home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980424-19980901 / 000241_news@newsmaster….columbia.edu _Thu Jul 2 17:49:42 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA20286
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 2 Jul 1998 17:49:41 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA03785
  7.     for kermit.misc@watsun; Thu, 2 Jul 1998 17:49:40 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!newsfeed.wli.net!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.best.com!vnetnews.value.net!not-for-mail
  9. From: Mark Sapiro <msapiro@value.net>
  10. Newsgroups: comp.protocols.kermit,comp.protocols.kermit.misc
  11. Subject: Re: script w/ telnet
  12. Followup-To: comp.protocols.kermit.misc
  13. Date: Thu, 02 Jul 1998 14:41:41 -0700
  14. Organization: Seldom Very Much
  15. Lines: 32
  16. Message-ID: <359BFE95.3C09@value.net>
  17. References: <359A9A8F.E6F8DB09@shifted-bytes.de>
  18. Reply-To: Mark Sapiro <msapiro@value.net>
  19. NNTP-Posting-Host: d32-ts03.wci.value.net
  20. Mime-Version: 1.0
  21. Content-Type: text/plain; charset=us-ascii
  22. Content-Transfer-Encoding: 7bit
  23. X-Mailer: Mozilla 3.01 (Win95; I)
  24. To: Michael Agbaglo <byteshifter@shifted-bytes.de>
  25. Xref: news.columbia.edu comp.protocols.kermit.misc:8938
  26.  
  27. Michael Agbaglo wrote to comp.protocols.kermit:
  28. > How do I make kermit to continue w/ the script after establishing a link
  29. > w/ telnet ?
  30. > e.g.
  31. > telnet mail 25
  32. > script foo bar
  33. > kermit stops after executing the 1st line ...
  34.  
  35. I am cross posting this reply to comp.protocols.kermit.misc which is
  36. where I think it belongs.
  37.  
  38. The telnet command enters connect mode if successful.  Script execution
  39. is suspended in connect mode until the user returns to command mode. 
  40. Thus what you really want is:
  41.  
  42. set network tcp/ip
  43. if failure end 1 tcp/ip network not supported
  44. set host mail 25
  45. if failure end 1 can't open host: mail 25
  46. ;
  47. ;  continue script here using 'input' and 'output' commands to
  48. communicate
  49. ;  with host...
  50. ;  only 'connect' if you really mean it.
  51.  
  52. -- 
  53. Mark Sapiro <msapiro@value.net>       The highway is for gamblers,
  54. San Francisco Bay Area, California    better use your sense - B. Dylan